package com.dart.sys.mapper;

import java.util.List;

import com.dart.commons.base.mybatis.BaseMapper;
import com.dart.sys.entity.Resource;

public interface ResourceMapper extends BaseMapper<Resource, Integer> {
	
	/**
	 * 查询所有一级节点
	 * @param id
	 * @return
	 */
	List<Resource> selectRoots();
	
	/**
	 * 根据ID查询子节点
	 * @param id
	 * @return
	 */
	List<Resource> selectChildrenById(Integer id);
	
}